package com.iot.enums;

public enum InviteContentEnum {

    CHINESE(0,"$X邀请你关注他"),
    TRADITIONAL_CHINESE(1,"$X邀請你關注他"),
    ENGLISH(2,"$X invites you to follow him"),
    FRENCH(3,"$X vous invite à le suivre"),
    GERMAN(4,"$X lädt Sie ein, ihm zu folgen"),
    ITALIAN(5,"$X ti invita a seguirlo"),
    JAPANESE(6,"$Xが彼に目を向けてくれと言った"),
    POLISH(7,"$X zaprosi cię do niego zwrócić uwagę"),
    PORTUGUESE(8,"$X convida você a seguir ele"),
    RUSSIAN(9,"$X приглашает вас следить за ним"),
    SPANISH(10,"$X te invita a seguirlo"),
    ARABIC(11,"$X يدعوك لمتابعته"),
    GREEK(12,"$X σας καλεί να τον δώσετε προσοχή"),
    KOREAN(13,"$X는 그를 지켜보도록 요청합니다."),
    THAI(14,"$X เชิญคุณติดตามเขา"),
    PERSIAN(15,"$X شما را دعوت می کند تا او را دنبال کنید"),
    TURKISH(16,"$X sizi onu takip etmeye davet ediyor"),
    VIETNAMESE(17,"$X mời bạn theo dõi anh ấy"),
    DUTCH(18,"$X nodigt u uit om hem te volgen"),
    DANISH(19,"$X inviterer dig til at være opmærksom på ham"),
    CZECH(20,"$X Vás pozvá, abyste ho sledovali"),
    SWEDISH(21,"$X bjuder dig in att uppmärksamma honom"),
    FINNISH(22,"$X kutsuu sinua kiinnittämään huomiota hänelle"),
    BULGARIAN_LANGUAGE(23,"$X ви кани да го следите"),
    UKRAINIAN(24,"$X запрошує вас звернути увагу на нього"),
    HEBREW(25,"$X מזמין אותך לשים לב לו");

    private Integer code;

    private String content;


    InviteContentEnum(Integer code, String content) {
        this.code = code;
        this.content = content;
    }

    public Integer getCode() {
        return code;
    }

    public String getContent() {
        return content;
    }

    public static String getByCode(Integer code){
        if (null == code) {
            return CHINESE.getContent();
        }

        for (ElectronicFenceContentEnum value : ElectronicFenceContentEnum.values()) {
            if (value.getCode().equals(code)) {
                return value.getContent();
            }
        }
        return CHINESE.getContent();
    }
}
